Integrand size = 40, antiderivative size = 278 \[ \int \frac {A+B x+C x^2}{\sqrt {a+b x} \sqrt {a c-b c x} (e+f x)} \, dx=-\frac {C \left (a^2-b^2 x^2\right )}{b^2 f \sqrt {a+b x} \sqrt {a c-b c x}}-\frac {(C e-B f) \sqrt {a^2 c-b^2 c x^2} \arctan \left (\frac {b \sqrt {c} x}{\sqrt {a^2 c-b^2 c x^2}}\right )}{b \sqrt {c} f^2 \sqrt {a+b x} \sqrt {a c-b c x}}+\frac {\left (C e^2-B e f+A f^2\right ) \sqrt {a^2 c-b^2 c x^2} \arctan \left (\frac {\sqrt {c} \left (a^2 f+b^2 e x\right )}{\sqrt {b^2 e^2-a^2 f^2} \sqrt {a^2 c-b^2 c x^2}}\right )}{\sqrt {c} f^2 \sqrt {b^2 e^2-a^2 f^2} \sqrt {a+b x} \sqrt {a c-b c x}} \]
-C*(-b^2*x^2+a^2)/b^2/f/(b*x+a)^(1/2)/(-b*c*x+a*c)^(1/2)-(-B*f+C*e)*arctan (b*x*c^(1/2)/(-b^2*c*x^2+a^2*c)^(1/2))*(-b^2*c*x^2+a^2*c)^(1/2)/b/f^2/c^(1 /2)/(b*x+a)^(1/2)/(-b*c*x+a*c)^(1/2)+(A*f^2-B*e*f+C*e^2)*arctan((b^2*e*x+a ^2*f)*c^(1/2)/(-a^2*f^2+b^2*e^2)^(1/2)/(-b^2*c*x^2+a^2*c)^(1/2))*(-b^2*c*x ^2+a^2*c)^(1/2)/f^2/c^(1/2)/(-a^2*f^2+b^2*e^2)^(1/2)/(b*x+a)^(1/2)/(-b*c*x +a*c)^(1/2)
Time = 0.43 (sec) , antiderivative size = 178, normalized size of antiderivative = 0.64 \[ \int \frac {A+B x+C x^2}{\sqrt {a+b x} \sqrt {a c-b c x} (e+f x)} \, dx=\frac {\frac {C f (-a+b x) \sqrt {a+b x}}{b^2}-\frac {2 (C e-B f) \sqrt {a-b x} \arctan \left (\frac {\sqrt {a+b x}}{\sqrt {a-b x}}\right )}{b}+\frac {2 \left (C e^2+f (-B e+A f)\right ) \sqrt {a-b x} \arctan \left (\frac {\sqrt {b e+a f} \sqrt {a+b x}}{\sqrt {b e-a f} \sqrt {a-b x}}\right )}{\sqrt {b e-a f} \sqrt {b e+a f}}}{f^2 \sqrt {c (a-b x)}} \]
((C*f*(-a + b*x)*Sqrt[a + b*x])/b^2 - (2*(C*e - B*f)*Sqrt[a - b*x]*ArcTan[ Sqrt[a + b*x]/Sqrt[a - b*x]])/b + (2*(C*e^2 + f*(-(B*e) + A*f))*Sqrt[a - b *x]*ArcTan[(Sqrt[b*e + a*f]*Sqrt[a + b*x])/(Sqrt[b*e - a*f]*Sqrt[a - b*x]) ])/(Sqrt[b*e - a*f]*Sqrt[b*e + a*f]))/(f^2*Sqrt[c*(a - b*x)])
Time = 0.62 (sec) , antiderivative size = 233, normalized size of antiderivative = 0.84, number of steps used = 10, number of rules used = 9, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.225, Rules used = {2113, 2185, 25, 27, 719, 224, 216, 488, 217}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {A+B x+C x^2}{\sqrt {a+b x} (e+f x) \sqrt {a c-b c x}} \, dx\) |
\(\Big \downarrow \) 2113 |
\(\displaystyle \frac {\sqrt {a^2 c-b^2 c x^2} \int \frac {C x^2+B x+A}{(e+f x) \sqrt {a^2 c-b^2 c x^2}}dx}{\sqrt {a+b x} \sqrt {a c-b c x}}\) |
\(\Big \downarrow \) 2185 |
\(\displaystyle \frac {\sqrt {a^2 c-b^2 c x^2} \left (-\frac {\int -\frac {b^2 c f (A f-(C e-B f) x)}{(e+f x) \sqrt {a^2 c-b^2 c x^2}}dx}{b^2 c f^2}-\frac {C \sqrt {a^2 c-b^2 c x^2}}{b^2 c f}\right )}{\sqrt {a+b x} \sqrt {a c-b c x}}\) |
\(\Big \downarrow \) 25 |
\(\displaystyle \frac {\sqrt {a^2 c-b^2 c x^2} \left (\frac {\int \frac {b^2 c f (A f-(C e-B f) x)}{(e+f x) \sqrt {a^2 c-b^2 c x^2}}dx}{b^2 c f^2}-\frac {C \sqrt {a^2 c-b^2 c x^2}}{b^2 c f}\right )}{\sqrt {a+b x} \sqrt {a c-b c x}}\) |
\(\Big \downarrow \) 27 |
\(\displaystyle \frac {\sqrt {a^2 c-b^2 c x^2} \left (\frac {\int \frac {A f-(C e-B f) x}{(e+f x) \sqrt {a^2 c-b^2 c x^2}}dx}{f}-\frac {C \sqrt {a^2 c-b^2 c x^2}}{b^2 c f}\right )}{\sqrt {a+b x} \sqrt {a c-b c x}}\) |
\(\Big \downarrow \) 719 |
\(\displaystyle \frac {\sqrt {a^2 c-b^2 c x^2} \left (\frac {\frac {\left (A f^2-B e f+C e^2\right ) \int \frac {1}{(e+f x) \sqrt {a^2 c-b^2 c x^2}}dx}{f}-\frac {(C e-B f) \int \frac {1}{\sqrt {a^2 c-b^2 c x^2}}dx}{f}}{f}-\frac {C \sqrt {a^2 c-b^2 c x^2}}{b^2 c f}\right )}{\sqrt {a+b x} \sqrt {a c-b c x}}\) |
\(\Big \downarrow \) 224 |
\(\displaystyle \frac {\sqrt {a^2 c-b^2 c x^2} \left (\frac {\frac {\left (A f^2-B e f+C e^2\right ) \int \frac {1}{(e+f x) \sqrt {a^2 c-b^2 c x^2}}dx}{f}-\frac {(C e-B f) \int \frac {1}{\frac {b^2 c x^2}{a^2 c-b^2 c x^2}+1}d\frac {x}{\sqrt {a^2 c-b^2 c x^2}}}{f}}{f}-\frac {C \sqrt {a^2 c-b^2 c x^2}}{b^2 c f}\right )}{\sqrt {a+b x} \sqrt {a c-b c x}}\) |
\(\Big \downarrow \) 216 |
\(\displaystyle \frac {\sqrt {a^2 c-b^2 c x^2} \left (\frac {\frac {\left (A f^2-B e f+C e^2\right ) \int \frac {1}{(e+f x) \sqrt {a^2 c-b^2 c x^2}}dx}{f}-\frac {(C e-B f) \arctan \left (\frac {b \sqrt {c} x}{\sqrt {a^2 c-b^2 c x^2}}\right )}{b \sqrt {c} f}}{f}-\frac {C \sqrt {a^2 c-b^2 c x^2}}{b^2 c f}\right )}{\sqrt {a+b x} \sqrt {a c-b c x}}\) |
\(\Big \downarrow \) 488 |
\(\displaystyle \frac {\sqrt {a^2 c-b^2 c x^2} \left (\frac {-\frac {\left (A f^2-B e f+C e^2\right ) \int \frac {1}{-b^2 c e^2+a^2 c f^2-\frac {\left (c f a^2+b^2 c e x\right )^2}{a^2 c-b^2 c x^2}}d\frac {c f a^2+b^2 c e x}{\sqrt {a^2 c-b^2 c x^2}}}{f}-\frac {(C e-B f) \arctan \left (\frac {b \sqrt {c} x}{\sqrt {a^2 c-b^2 c x^2}}\right )}{b \sqrt {c} f}}{f}-\frac {C \sqrt {a^2 c-b^2 c x^2}}{b^2 c f}\right )}{\sqrt {a+b x} \sqrt {a c-b c x}}\) |
\(\Big \downarrow \) 217 |
\(\displaystyle \frac {\sqrt {a^2 c-b^2 c x^2} \left (\frac {\frac {\left (A f^2-B e f+C e^2\right ) \arctan \left (\frac {a^2 c f+b^2 c e x}{\sqrt {c} \sqrt {a^2 c-b^2 c x^2} \sqrt {b^2 e^2-a^2 f^2}}\right )}{\sqrt {c} f \sqrt {b^2 e^2-a^2 f^2}}-\frac {(C e-B f) \arctan \left (\frac {b \sqrt {c} x}{\sqrt {a^2 c-b^2 c x^2}}\right )}{b \sqrt {c} f}}{f}-\frac {C \sqrt {a^2 c-b^2 c x^2}}{b^2 c f}\right )}{\sqrt {a+b x} \sqrt {a c-b c x}}\) |
(Sqrt[a^2*c - b^2*c*x^2]*(-((C*Sqrt[a^2*c - b^2*c*x^2])/(b^2*c*f)) + (-((( C*e - B*f)*ArcTan[(b*Sqrt[c]*x)/Sqrt[a^2*c - b^2*c*x^2]])/(b*Sqrt[c]*f)) + ((C*e^2 - B*e*f + A*f^2)*ArcTan[(a^2*c*f + b^2*c*e*x)/(Sqrt[c]*Sqrt[b^2*e ^2 - a^2*f^2]*Sqrt[a^2*c - b^2*c*x^2])])/(Sqrt[c]*f*Sqrt[b^2*e^2 - a^2*f^2 ]))/f))/(Sqrt[a + b*x]*Sqrt[a*c - b*c*x])
3.1.24.3.1 Defintions of rubi rules used
Int[(a_)*(Fx_), x_Symbol] :> Simp[a Int[Fx, x], x] /; FreeQ[a, x] && !Ma tchQ[Fx, (b_)*(Gx_) /; FreeQ[b, x]]
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1/(Rt[a, 2]*Rt[b, 2]))*A rcTan[Rt[b, 2]*(x/Rt[a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a , 0] || GtQ[b, 0])
Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(-(Rt[-a, 2]*Rt[-b, 2])^( -1))*ArcTan[Rt[-b, 2]*(x/Rt[-a, 2])], x] /; FreeQ[{a, b}, x] && PosQ[a/b] & & (LtQ[a, 0] || LtQ[b, 0])
Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a, b}, x] && !GtQ[a, 0]
Int[1/(((c_) + (d_.)*(x_))*Sqrt[(a_) + (b_.)*(x_)^2]), x_Symbol] :> -Subst[ Int[1/(b*c^2 + a*d^2 - x^2), x], x, (a*d - b*c*x)/Sqrt[a + b*x^2]] /; FreeQ [{a, b, c, d}, x]
Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p _.), x_Symbol] :> Simp[g/e Int[(d + e*x)^(m + 1)*(a + c*x^2)^p, x], x] + Simp[(e*f - d*g)/e Int[(d + e*x)^m*(a + c*x^2)^p, x], x] /; FreeQ[{a, c, d, e, f, g, m, p}, x] && !IGtQ[m, 0]
Int[(Px_)*((a_.) + (b_.)*(x_))^(m_)*((c_.) + (d_.)*(x_))^(n_)*((e_.) + (f_. )*(x_))^(p_.), x_Symbol] :> Simp[(a + b*x)^FracPart[m]*((c + d*x)^FracPart[ m]/(a*c + b*d*x^2)^FracPart[m]) Int[Px*(a*c + b*d*x^2)^m*(e + f*x)^p, x], x] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && PolyQ[Px, x] && EqQ[b*c + a *d, 0] && EqQ[m, n] && !IntegerQ[m]
Int[(Pq_)*((d_) + (e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_), x_Symbol] : > With[{q = Expon[Pq, x], f = Coeff[Pq, x, Expon[Pq, x]]}, Simp[f*(d + e*x) ^(m + q - 1)*((a + b*x^2)^(p + 1)/(b*e^(q - 1)*(m + q + 2*p + 1))), x] + Si mp[1/(b*e^q*(m + q + 2*p + 1)) Int[(d + e*x)^m*(a + b*x^2)^p*ExpandToSum[ b*e^q*(m + q + 2*p + 1)*Pq - b*f*(m + q + 2*p + 1)*(d + e*x)^q - f*(d + e*x )^(q - 2)*(a*e^2*(m + q - 1) - b*d^2*(m + q + 2*p + 1) - 2*b*d*e*(m + q + p )*x), x], x], x] /; GtQ[q, 1] && NeQ[m + q + 2*p + 1, 0]] /; FreeQ[{a, b, d , e, m, p}, x] && PolyQ[Pq, x] && NeQ[b*d^2 + a*e^2, 0] && !(EqQ[d, 0] && True) && !(IGtQ[m, 0] && RationalQ[a, b, d, e] && (IntegerQ[p] || ILtQ[p + 1/2, 0]))
Time = 1.72 (sec) , antiderivative size = 299, normalized size of antiderivative = 1.08
method | result | size |
risch | \(-\frac {C \sqrt {b x +a}\, \left (-b x +a \right )}{f \,b^{2} \sqrt {-c \left (b x -a \right )}}+\frac {\left (\frac {\left (B f -C e \right ) \arctan \left (\frac {\sqrt {b^{2} c}\, x}{\sqrt {-b^{2} c \,x^{2}+a^{2} c}}\right )}{f \sqrt {b^{2} c}}-\frac {\left (A \,f^{2}-B e f +C \,e^{2}\right ) \ln \left (\frac {\frac {2 c \left (a^{2} f^{2}-b^{2} e^{2}\right )}{f^{2}}+\frac {2 b^{2} c e \left (x +\frac {e}{f}\right )}{f}+2 \sqrt {\frac {c \left (a^{2} f^{2}-b^{2} e^{2}\right )}{f^{2}}}\, \sqrt {-b^{2} c \left (x +\frac {e}{f}\right )^{2}+\frac {2 b^{2} c e \left (x +\frac {e}{f}\right )}{f}+\frac {c \left (a^{2} f^{2}-b^{2} e^{2}\right )}{f^{2}}}}{x +\frac {e}{f}}\right )}{f^{2} \sqrt {\frac {c \left (a^{2} f^{2}-b^{2} e^{2}\right )}{f^{2}}}}\right ) \sqrt {-\left (b x +a \right ) c \left (b x -a \right )}}{f \sqrt {b x +a}\, \sqrt {-c \left (b x -a \right )}}\) | \(299\) |
default | \(\frac {\left (-A \ln \left (\frac {2 b^{2} c e x +2 a^{2} c f +2 \sqrt {\frac {c \left (a^{2} f^{2}-b^{2} e^{2}\right )}{f^{2}}}\, \sqrt {c \left (-b^{2} x^{2}+a^{2}\right )}\, f}{f x +e}\right ) b^{2} c \,f^{2} \sqrt {b^{2} c}+B \ln \left (\frac {2 b^{2} c e x +2 a^{2} c f +2 \sqrt {\frac {c \left (a^{2} f^{2}-b^{2} e^{2}\right )}{f^{2}}}\, \sqrt {c \left (-b^{2} x^{2}+a^{2}\right )}\, f}{f x +e}\right ) b^{2} c e f \sqrt {b^{2} c}+B \arctan \left (\frac {\sqrt {b^{2} c}\, x}{\sqrt {c \left (-b^{2} x^{2}+a^{2}\right )}}\right ) b^{2} c \,f^{2} \sqrt {\frac {c \left (a^{2} f^{2}-b^{2} e^{2}\right )}{f^{2}}}-C \ln \left (\frac {2 b^{2} c e x +2 a^{2} c f +2 \sqrt {\frac {c \left (a^{2} f^{2}-b^{2} e^{2}\right )}{f^{2}}}\, \sqrt {c \left (-b^{2} x^{2}+a^{2}\right )}\, f}{f x +e}\right ) b^{2} c \,e^{2} \sqrt {b^{2} c}-C \arctan \left (\frac {\sqrt {b^{2} c}\, x}{\sqrt {c \left (-b^{2} x^{2}+a^{2}\right )}}\right ) b^{2} c e f \sqrt {\frac {c \left (a^{2} f^{2}-b^{2} e^{2}\right )}{f^{2}}}-C \,f^{2} \sqrt {b^{2} c}\, \sqrt {\frac {c \left (a^{2} f^{2}-b^{2} e^{2}\right )}{f^{2}}}\, \sqrt {c \left (-b^{2} x^{2}+a^{2}\right )}\right ) \sqrt {b x +a}\, \sqrt {c \left (-b x +a \right )}}{\sqrt {\frac {c \left (a^{2} f^{2}-b^{2} e^{2}\right )}{f^{2}}}\, f^{3} \sqrt {b^{2} c}\, b^{2} c \sqrt {c \left (-b^{2} x^{2}+a^{2}\right )}}\) | \(487\) |
-C*(b*x+a)^(1/2)*(-b*x+a)/f/b^2/(-c*(b*x-a))^(1/2)+1/f*((B*f-C*e)/f/(b^2*c )^(1/2)*arctan((b^2*c)^(1/2)*x/(-b^2*c*x^2+a^2*c)^(1/2))-(A*f^2-B*e*f+C*e^ 2)/f^2/(c*(a^2*f^2-b^2*e^2)/f^2)^(1/2)*ln((2*c*(a^2*f^2-b^2*e^2)/f^2+2*b^2 *c*e/f*(x+e/f)+2*(c*(a^2*f^2-b^2*e^2)/f^2)^(1/2)*(-b^2*c*(x+e/f)^2+2*b^2*c *e/f*(x+e/f)+c*(a^2*f^2-b^2*e^2)/f^2)^(1/2))/(x+e/f)))*(-(b*x+a)*c*(b*x-a) )^(1/2)/(b*x+a)^(1/2)/(-c*(b*x-a))^(1/2)
Timed out. \[ \int \frac {A+B x+C x^2}{\sqrt {a+b x} \sqrt {a c-b c x} (e+f x)} \, dx=\text {Timed out} \]
\[ \int \frac {A+B x+C x^2}{\sqrt {a+b x} \sqrt {a c-b c x} (e+f x)} \, dx=\int \frac {A + B x + C x^{2}}{\sqrt {- c \left (- a + b x\right )} \sqrt {a + b x} \left (e + f x\right )}\, dx \]
Exception generated. \[ \int \frac {A+B x+C x^2}{\sqrt {a+b x} \sqrt {a c-b c x} (e+f x)} \, dx=\text {Exception raised: ValueError} \]
Exception raised: ValueError >> Computation failed since Maxima requested additional constraints; using the 'assume' command before evaluation *may* help (example of legal syntax is 'assume((4*b^2*c>0)', see `assume?` for more detai
Exception generated. \[ \int \frac {A+B x+C x^2}{\sqrt {a+b x} \sqrt {a c-b c x} (e+f x)} \, dx=\text {Exception raised: TypeError} \]
Exception raised: TypeError >> an error occurred running a Giac command:IN PUT:sage2:=int(sage0,sageVARx):;OUTPUT:index.cc index_m i_lex_is_greater E rror: Bad Argument Value
Time = 56.99 (sec) , antiderivative size = 9298, normalized size of antiderivative = 33.45 \[ \int \frac {A+B x+C x^2}{\sqrt {a+b x} \sqrt {a c-b c x} (e+f x)} \, dx=\text {Too large to display} \]
(B*a*e*atan(((B*a*e*((4096*(32*B^3*a^(17/2)*c^3*e*f^2*(a*c)^(5/2) + 24*B^3 *a^(15/2)*b^2*c^4*e^3*(a*c)^(3/2)))/(a^6*b^8*e^6) - (4096*(32*B^3*a^(17/2) *c^2*e*f^2*(a*c)^(5/2) - 96*B^3*a^(15/2)*b^2*c^3*e^3*(a*c)^(3/2))*((a*c - b*c*x)^(1/2) - (a*c)^(1/2))^2)/(a^6*b^8*e^6*((a + b*x)^(1/2) - a^(1/2))^2) - (B*a*e*((4096*(16*B^2*a^12*c^6*f^4 + 9*B^2*a^8*b^4*c^6*e^4))/(a^6*b^8*e ^6) + (B*a*e*((4096*(24*B*a^(17/2)*b^2*c^4*e*f^4*(a*c)^(5/2) - 30*B*a^(15/ 2)*b^4*c^5*e^3*f^2*(a*c)^(3/2)))/(a^6*b^8*e^6) + (16384*(20*B*a^12*c^6*f^5 - 22*B*a^10*b^2*c^6*e^2*f^3)*((a*c - b*c*x)^(1/2) - (a*c)^(1/2)))/(a^6*b^ 7*e^6*((a + b*x)^(1/2) - a^(1/2))) + (B*a*e*((4096*(9*a^8*b^6*c^7*e^4*f^2 - 7*a^10*b^4*c^7*e^2*f^4))/(a^6*b^8*e^6) + (4096*(9*a^8*b^6*c^6*e^4*f^2 - 11*a^10*b^4*c^6*e^2*f^4)*((a*c - b*c*x)^(1/2) - (a*c)^(1/2))^2)/(a^6*b^8*e ^6*((a + b*x)^(1/2) - a^(1/2))^2) - (16384*(5*a^(17/2)*b^2*c^4*e*f^5*(a*c) ^(5/2) - 6*a^(15/2)*b^4*c^5*e^3*f^3*(a*c)^(3/2))*((a*c - b*c*x)^(1/2) - (a *c)^(1/2)))/(a^6*b^7*e^6*((a + b*x)^(1/2) - a^(1/2)))))/(f*(a^4*c*f^2 - a^ 2*b^2*c*e^2)^(1/2)) + (4096*((a*c - b*c*x)^(1/2) - (a*c)^(1/2))^2*(96*B*a^ (17/2)*b^2*c^3*e*f^4*(a*c)^(5/2) - 90*B*a^(15/2)*b^4*c^4*e^3*f^2*(a*c)^(3/ 2)))/(a^6*b^8*e^6*((a + b*x)^(1/2) - a^(1/2))^2)))/(f*(a^4*c*f^2 - a^2*b^2 *c*e^2)^(1/2)) + (16384*(8*B^2*a^(17/2)*c^3*e*f^3*(a*c)^(5/2) + 3*B^2*a^(1 5/2)*b^2*c^4*e^3*f*(a*c)^(3/2))*((a*c - b*c*x)^(1/2) - (a*c)^(1/2)))/(a^6* b^7*e^6*((a + b*x)^(1/2) - a^(1/2))) + (4096*((a*c - b*c*x)^(1/2) - (a*...